import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';

@Entity()
export class File {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  original_name: string;

  @Column()
  url: string;

  @Column()
  extend: string;

  @Column({ default: null })
  business_type: string;

  @Column({ default: null })
  business_key: string;

  @CreateDateColumn()
  createdDate: Date;
}
